//
//  CrvHeadView.m
//  Teacher
//
//  Created by cong on 15/11/14.
//  Copyright © 2015年 liangdianxiong. All rights reserved.
//

#import "CrvHeadView.h"

@implementation CrvHeadView

- (void)awakeFromNib {
    // Initialization code
    NSArray*imageNames=@[@"1.jpg",@"5.png",@"5.png",@"5.png"];
    
    for (int i=0; i<imageNames.count; i++) {
        
        UIImageView * iv = [UIImageView new];
        
        iv.image = [UIImage imageNamed:imageNames[i]];
        [_svHead addSubview:iv];
        
        [iv mas_makeConstraints:^(MASConstraintMaker *make) {
            if (i==0) {
                make.left.equalTo(_svHead);
            }
            make.size.equalTo(_svHead);
        }];
    }

   
    
    
    [_svHead distributeSpacingHorizontallyWith:_svHead.subviews];
    
    
    
}






@end
